package com.rd.student.jike.class4.xiayinyin.day0731;

import java.util.ArrayList;
import java.util.Collections;

public class Exercises06 {
    public static void main(String[] args) {
        ArrayList<Integer> list = new ArrayList<>(50);
        for (int i = 0; i < 50; i++) {
            list.add(i);
        }
        Collections.shuffle(list);
        for (int i = 0; i < 20; i++) {
            System.out.println(list.get(i));
        }
    }
}
